﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DTO.Models.MEDIA>" %>
<%@ Import Namespace="DTO.Models" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    CIT.COM.VN - GIỚI THIỆU
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% string domaincms = ConfigurationManager.AppSettings["domaincms"]; %>
    <div class="dung-maincontent-show">
        <div class="dung-section">
            <div class="dung-section-border"></div>
            <div class="dung-section-title"><%= Model != null ? Html.Encode(Model.Title) : "" %></div>
            <div class="dung-section-content">
                <div id="content">
                    <%= Model != null ? Model.Content : "" %>
                </div>
                <br />
    
                <img src='<%= Url.Content("~/image/hinhphanchia.jpg")%>' alt="" width="680px" />
                <br />
                <h3>Các bài giới thiệu khác</h3>

                <% List<MEDIA> dsGioiThieu = (List<MEDIA>)ViewData["GioiThieu"]; %>
                <ul>
                <% foreach (MEDIA item in dsGioiThieu)
                   { %>
                   <li style="margin:0; padding:3px 0; border-bottom: dotted 1px #CCC;background: none" >
                        <a href='<%= Url.Action("Index", new { id = item.MediaID }) %>'><%= item.Title%></a>
                    </li>
                <%} %>
                </ul>           
            </div>
        </div>
    </div>
    <script type="text/javascript">

        $("#content img").each(function () {
            var url = $(this).attr("src");
            url = '<%= domaincms %>' + url;
            $(this).attr("src", url);
        });
	
    </script>
</asp:Content>
